﻿using System.Collections.Generic;
using OxyPlot.Series;

namespace DesigneSpaceExplorerVEGA
{
    class PointComparer : IComparer<ScatterPoint>
    {
        public int Compare(ScatterPoint x, ScatterPoint y)
        {
            if (x.X == y.X)
            {
                if (x.Y < y.Y)
                    return 1;
                return -1;
            }

            if (x.X > y.X) return 1;
            return -1;
        }
    }
}
